import request from "../utils/request";

// 注册 (手机号：mobile 短信验证码：sms_code 密码：password)
export const apiRegister = async (user) => { 
    return request(`/api/user/register`, 'POST', user)
}

// 获取短信验证码 (手机号：mobile 图形验证码：captcha 密钥：key)
export const apiSendCode = async (user) => {
    return request(`/api/user/sendCode`, 'POST', user)
}

// 获取图形验证码
export const apiCaptcha = async () => {
    return request(`/api/user/captcha`, 'GET')
}
